import { Injectable } from '@angular/core';
import { FrameContext } from '@farris/devkit';
@Injectable()
export class SbssLuTaskFrmControllerService {
  constructor(
        private frameContext: FrameContext,
  ) {}

  /**
   * 组件视图初始化后事件
   * @remarks 
   * @returns 
   */
  componentAfterViewInit(): any {
    const defaultValue = {
      fieldConfigs: [
          {//下拉
              labelCode: "BillStatus.BillState",
              value: {
                  key: "Billing,SubmitApproval",
                  value: [
                    { value: "Billing", name: "制单" },
                    { value: "SubmitApproval",name: "提交审批" }
                  ]
              }
          },
      ]}

    this.frameContext.uiState['defaultConfigs'] = defaultValue
  }
}
